package c5.Example03;

public class example03 {
    public static void main(String[] args) {
        String str = "abcd";
        System.out.print("将字符串转换为字符数组的结果:");
        char[] charArray = str.toCharArray();
        for (int i = 0; i < charArray.length;i++){
            if (i != charArray.length -1){
                System.out.print(charArray[i]+",");
            }else {
                System.out.print(charArray[i]);
            }
        }
        System.out.println("将int的值转换为String类型之后的结果："+String.valueOf(12));
        System.out.println("将字符串转换成大小写字母之后的结果："+str.toUpperCase());
        System.out.println("将字符串转换成小写字母之后的结果："+str.toLowerCase());
    }
}
